import {useState} from "react";
import {GETSESSIONSTORE} from "../utils/cookies";

export default function useInfoStore() {
  const [userInfo, setUserInfo] = useState(GETSESSIONSTORE("useInfo") ? JSON.parse(GETSESSIONSTORE("useInfo") as any) : {});
  return {
    userInfo,
    setUserInfo,
  };
}
